const {ccclass, property} = cc._decorator;

@ccclass
export default class SplashScene extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;

    @property
    text: string = null;

    start () {
        // init logic
        this.label.string = "这是加载场景";
        setTimeout(() => {
            cc.director.loadScene("StartScene",()=>{
                console.log("On StartScene Launched CallBack");
            })
        }, 0);
    }
}
